<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/layout/templateInformacao.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="content">
        <f:view>

            <p>
                <ui:insert name="content">

                </ui:insert>
            </p>

                <h:form>

                    
                        <h:outputText value="Por favor preencha os dados referentes ao lance" />
                    <br />
                    <br />
                        <h:outputText value="Usuário:" />
                        <h:selectOneMenu value="#{lanceController.lance.usuario}">
                            <f:selectItems value="#{pessoaController.carregarPessoas()}"/>
                        </h:selectOneMenu>
                    <br />
                    <br />
                        
                    <h:outputText value="Leilão:" />
                        <h:selectOneMenu value="#{lanceController.lance.leilao}">
                            <f:selectItems value="#{leilaoController.lista}"/>"
                        </h:selectOneMenu>
                    <br />
                    <br />
                    
                    <h:outputText value="Valor:" />
                    <h:inputText value="#{lanceController.lance.valor}" />
                    <br />
                    <br />
                    
                    <h:commandButton value="Finalizar lance" action="#{lanceController.inserirLance()}" />
                    

                </h:form>
            
            <br/>
            
            <h:messages style="font-size: 13px; color: white;"/>
        </f:view>
    </ui:define>
</ui:composition>